<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<p></p>
<div id="one">
    <p>123</p>
    <h1>1</h1>
</div>
<script>
    //console.log(1)
    var o2 = {}
    var box = document.getElementById("one");
    console.log(box.innerText);


</script>
</body>
</html>